package flex.cc.uac.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import flex.cc.system.vo.DictOptionVo;
import flex.cc.uac.dto.BindRoleDto;
import flex.cc.uac.entity.UacUserEntity;

/**
 * 用户信息表
 * 
 * @author zhangzk
 * @email zhangzhikai@sinosoft.com.cn
 * @date 2020-06-03 18:23:45
 */
@Mapper
public interface UacUserDao extends BaseMapper<UacUserEntity> {
	
	IPage<UacUserEntity> queryUserListWithPage(Page<UacUserEntity> page, @Param("qv") UacUserEntity uacUser);

    List<BindRoleDto> selectAllNeedBindRole(Long superManagerRoleId);

    UacUserEntity selectUserInfoByUserId(Long userId);
    
    /**
     * 查询坐席列表
     * @param upperVal
     * @param belongCodes
     * @return
     */
    List<DictOptionVo> getZXOptions(String[] upperVal, String[] belongCodes);
    
    /**
     * 根据邮箱查询用户
     * @param email
     * @return
     */
    List<UacUserEntity> selectUserInfoByEmail(String email);
}
